import React, { Component } from 'react';
import './index.less';
import PropTypes from 'prop-types';

const prefixCls = 'page-info-card';

class PageInfoCard extends Component {
  render() {
    const { data } = this.props;
    return (
      <div className={`${prefixCls}`}>
        <div className={`${prefixCls}-header`}>页面信息</div>
        <pre className={`${prefixCls}-content`}>{data}</pre>
      </div>
    );
  }
}

PageInfoCard.propTypes = {
  data: PropTypes.string
};

export default PageInfoCard;
